<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>python_django</title>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
</head>
<body>
<div class="container page-header">
    <div class="col-md-3">
        <h1>
            python_django
        </h1>
        <small> -- by haibt</small>
    </div>
</div>
<div class="container page-body">
    <div class="col-md-9" role="main">
        <div class="body-main">
            {% for article in articles %}
                <div>
                    <h2><a href="/blog/get_article/{{ article.article_id }}">{{ article.article_title }}</a></h2>
                    <p>{{ article.article_brief }}</p>
                </div>
            {% endfor %}
        </div>
        <div class="body-footer">
            <div class="col-md-4 col-md-offset-4">
                <nav aria-label="Page navigation">
                  <ul class="pagination">
                    <li>
                      <a href="/blog/get_index?page={{ prev_page }}" aria-label="上页">
                        <span aria-hidden="true">&laquo;</span>
                      </a>
                    </li>
                      {% for numb in numb_page %}
                        <li><a href="/blog/get_index?page={{ numb }}">{{ numb }}</a></li>
                      {% endfor %}
                    <li>
                      <a href="/blog/get_index?page={{ next_page }}" aria-label="下页">
                        <span aria-hidden="true">&raquo;</span>
                      </a>
                    </li>
                  </ul>
                </nav>
            </div>
        </div>
    </div>
    <div class="col-md-3" role="complementary">
        <div>
            <h2><a href="#">最新文章</a></h2>
            {% for article in recent_articles %}
                <h4><a href="/blog/get_article/{{ article.article_id }}">{{ article.article_title }}</a></h4>
            {% endfor %}
        </div>
    </div>
</div>

</body>
</html>